
// 做token验证
import cookie from "cookie_js";
const adminToken = "ques_admin_token";
const adminId= "ques_admin_id" ;
const nickName = "ques_nick_name" ;


export function getToken() {
  return cookie.get(adminToken);
}

export function setToken(token) {
  cookie.set(adminToken, token);
}
export function getUserId() {
  return cookie.get(adminId);
}

export function setUserId(adminId) {
  cookie.set(adminId, adminId);
}
export function getNickname() {
  return cookie.get(nickName);
}

export function setNickname(getNickname) {
  cookie.set(nickName, getNickname);
}